import java.io.PrintWriter;
import java.util.HashMap;

class ArrayExpr extends Node {
	private String name_;
	private String size_;

	public ArrayExpr(String n, String s) {
		name_ = n;
		size_ = s;
	}

	@Override
	public void print(PrintWriter pw) {
		pw.println("Node name : ArrayExpr");
		pw.println("ArrayList Size Expression : " + name_ + ".size()");
	}

	public String translate(HashMap<String, PrintWriter> pws, String strPare,
			SymbolTable st, String parent) {
		String key = st.getStack().get(1);
		PrintWriter pw = pws.get(key);
		String size_ = ".size()";
		pw.print(name_);
		pw.print(size_);
		return null;
	}
}
